package com.ebook.ui.logic;

import com.ebook.entity.Book;
import com.ebook.service.BookService;
import com.ebook.ui.fragment.bookfind.Keyword;
import com.ebook.ui.sync.WorkSyncer;

import java.util.ArrayList;

public class BookDistributer {
    public static ArrayList<Book> distributer(Keyword keyword){
        return WorkSyncer.bookService.selectBookByKeyWord(keyword);
    }
    public static ArrayList<Book> distributer(String category){
        return (ArrayList<Book>) WorkSyncer.bookService.selectBookByCategoryName(category);
    }

}
